package com.yxw.live_vod_boot.controller;

import com.yxw.live_vod_boot.service.ShareService;
import com.yxw.live_vod_facade.dto.OnSiteShareDto;
import com.yxw.live_vod_facade.dto.VideoReviewHandelDTO;
import com.yxw.yxnet_cd_center.common.utils.BaseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuxin
 * 2023.10.07
 * 分享管理
 */
@RestController
@RequestMapping("/api/sys/share")
@Api(value = "分享管理", tags = "分享管理")
@Slf4j
public class ShareController {

    @Autowired
    private ShareService shareService;

    @PostMapping(value = "/onSiteShare")
    @ApiOperation(value = "站内直播点播分享")
    public BaseResult onSiteShare(@RequestBody @Validated OnSiteShareDto dto){
        shareService.onSiteShare(dto);
        return BaseResult.doSuccess(null,"分享成功");
    }
}
